package org.example.zuoye.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author xinchen
 * @Date: 2024/08/20/ 17:14
 * @Description
 */
@Data
public class Log {
    private Integer logId;

    private Integer userId;

    @JsonFormat( pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat( pattern = "yyyy-MM-dd")
    private Date publishDate;

    private String content;

    private String title;

    private Admin admin;

    private String username;
}
